<?php
	/**
	 * Only difference to DataDirectory is the possibility to choose any location to store files.
	 * @author IMP
	 */
	
	class XDataDirectory extends DataDirectory {
		public function __construct($path2dir, $create = false, $mod = 0777){			
			if(is_dir($path2dir) || $create){
				if($create && !is_dir($path2dir)) mkdir($path2dir, $mod, true);
				$this->dirPath = $path2dir;
			}else{
				throw new DirectoryNotFoundException($path2dir);
			}
		}
	}
?>